package com.oo.polymorphic_4.drink;

/**
 * Water--${description}
 *
 * @author: Jovi
 * @createTime: 2017-05-09 15:48
 **/
public class Water extends Drink {

    public Water() {
        super("矿泉水");
    }

    @Override
    protected void buy() {
        System.out.println("名称："+this.getName()+"\n容量："
        +this.getCapacity());
    }
}
